package com.hzqy.web.login;

import java.util.Observable;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 地区
 * @author dead
 *
 */
public class AreaSession extends ObserverFather {
	private static final Log LOG = LogFactory.getLog(AreaSession.class);
	
	public AreaSession(HttpServletRequest request) {
		super(request);
	}

	@Override
	public void update(Observable o, Object arg) {
		super.update(o, arg);
		String areaid = "571";
		if(epgInfoVo != null){
			String serverid = epgInfoVo.getOss_user_id();
			if(serverid!=null && serverid.trim().length()>0){
				areaid = dataDao.selectAreaIdByServerId(serverid);
			}
		}
		session.setAttribute(SessionKey.SESSION_AREA,areaid);
	}

}
